www.gusucode.com > VC免费界面库 AppFace应用实例-源码程序 > VC免费界面库 AppFace应用实例-源码程序/code/Samples/VC6/DemoMdi/DemoMdiDoc.cpp

    //Download by http://www.NewXing.com
// DemoMdiDoc.cpp : implementation of the CDemoMdiDoc class
//

#include "stdafx.h"
#include "DemoMdi.h"

#include "DemoMdiDoc.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CDemoMdiDoc

IMPLEMENT_DYNCREATE(CDemoMdiDoc, CDocument)

BEGIN_MESSAGE_MAP(CDemoMdiDoc, CDocument)
	//{{AFX_MSG_MAP(CDemoMdiDoc)
		// NOTE - the ClassWizard will add and remove mapping macros here.
		//    DO NOT EDIT what you see in these blocks of generated code!
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CDemoMdiDoc construction/destruction

CDemoMdiDoc::CDemoMdiDoc()
{
	// TODO: add one-time construction code here

}

CDemoMdiDoc::~CDemoMdiDoc()
{
}

BOOL CDemoMdiDoc::OnNewDocument()
{
	if (!CDocument::OnNewDocument())
		return FALSE;

	// TODO: add reinitialization code here
	// (SDI documents will reuse this document)

	return TRUE;
}



/////////////////////////////////////////////////////////////////////////////
// CDemoMdiDoc serialization

void CDemoMdiDoc::Serialize(CArchive& ar)
{
	if (ar.IsStoring())
	{
		// TODO: add storing code here
	}
	else
	{
		// TODO: add loading code here
	}
}

/////////////////////////////////////////////////////////////////////////////
// CDemoMdiDoc diagnostics

#ifdef _DEBUG
void CDemoMdiDoc::AssertValid() const
{
	CDocument::AssertValid();
}

void CDemoMdiDoc::Dump(CDumpContext& dc) const
{
	CDocument::Dump(dc);
}
#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// CDemoMdiDoc commands